
# coding: utf-8

# In[1]:

# Create a 3x3 matrix with values ranging from 0 to 8 (创建一个3 * 3的矩阵，其中元素为0至8)


# In[2]:

import numpy as np


# In[9]:

data = np.arange(9).reshape(3,3)


# In[10]:

data


# In[17]:

#Shape and Reshape


# In[19]:

data_a = [eval(i) for i in input().strip().split()]
print(np.array(data_a).reshape(3,3))


# In[20]:

#Array Mathematics


# In[24]:

x,y = [eval(i) for i in input().strip().split()]
arr1 = np.array([input().split() for _ in range(x)],dtype = int).reshape(x,y)
arr2 = np.array([input().split() for _ in range(x)],dtype = int).reshape(x,y)


# In[25]:

print(arr1 + arr2)
print(arr1 - arr2)
print(arr1 * arr2)
print(arr1 // arr2)
print(arr1 % arr2)
print(arr1 ** arr2)


# In[30]:

arr3 = tuple([eval(i) for i in input().strip().split()])


# In[31]:

print(np.floor(arr3))
print(np.ceil(arr3))
print(np.rint(arr3))


# In[ ]:



